<template>
	<div>

		<el-table :data="tableData" style="width: 100%;">
			<el-table-column type="selection" width="55">
			</el-table-column>
			<el-table-column label="用户id" prop="staffId" sortable width="100"></el-table-column>
			<el-table-column label="基础工资" prop="basics" sortable width="100"></el-table-column>
			<el-table-column label="绩效工资" prop="performance" sortable width="100"></el-table-column>
			<el-table-column label="出勤工资" prop="attendanceWage" sortable width="100"></el-table-column>
			<el-table-column label="实际发放工资" prop="realWages" sortable width="150"></el-table-column>
			<el-table-column :formatter="formatDate" label="工资发放时间" prop="sendtime" sortable width="200">
			</el-table-column>
			<el-table-column label="操作人" prop="operId" sortable width="200"></el-table-column>
			<el-table-column :formatter="formatDate" label="操作时间" prop="operTime" sortable width="200">
			</el-table-column>


		</el-table>

	</div>

</template>

<script>
	export default {
		data() {
			return {
				tableData: [],
				pageInfo: {
					total: 10,
					currentPage: 1,
					pageNum: 1,
					pageSize: 10
				},
				formArticle: {
					title: '',
					status: '',
					pageNum: 1,
					pageSize: 3
				},
				sel: "all"
			}
		},
		methods: {
			formatDate(row, column, cellValue) {
				console.log(cellValue)
				let date = new Date(cellValue);
				return date.toLocaleString();
			},
		},

		created() {
			var that = this;
			console.log("sssss");
			console.log(this.num);
			// findMenuList  AdminByNum
			this.$http.post("/RegisterUser/getSararylimit").then(function(res) {
				console.log("sss");
				if (res.data.code != "500") {
					that.tableData = res.data.data;
					console.log(res.data.data)
				}
			})
		}
	}
</script>
